PART
{
name = XPC_InflateHeatshield311111X
module = Part
author = Yorik




CoMOffset = 0, -3.5, 0
CoLOffset = 0, -7.0, 0
CoPOffset = 0, 2.5, 0


MODEL
{
  model = CMES/Aero/BC-003/model
  scale = 1.45, 1.0, 1.45
}

scale = 1
rescaleFactor = 1
cost = 3200
node_stack_top = 0, 0.13846, 0, 0,1, 0, 3
node_stack_bottom = 0,-0.384, 0, 0, -1, 0, 3
TechRequired = heavyAerodynamics
entryCost = 7500
cost = 1250
category = Structural
subcategory = 0
title = CHAKA / Inflatable Heat Shield 1.25	
manufacturer = CMES / Planetes Corporation, Planeguy Aerospace Systems, GMBH
description = Remember to inflate before entry!
attachRules = 1,0,1,0,0

// --- standard part parameters ---
mass = 4
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 1
crashTolerance = 12
breakingForce = 60000
breakingTorque = 60000
maxTemp = 9000
fuelCrossFeed = False

MODULE
{
    name = ModuleDecouple
    ejectionForce = 20
    explosiveNodeID = top
    staged = true
}

MODULE
{
	name = ModuleAnimateGeneric
	animationName = InflateShieldL
	startEventGUIName = Inflate Heatshield
	isOneShot = true
}

MODULE
{
       name = ModuleJettison
       jettisonName = Shroud
       bottomNodeName = bottom
       checkBottomNode = true
       isFairing = True
       jettisonedObjectMass = 0.1
       jettisonForce = 5
       jettisonDirection = 0 0 1
	
}

MODULE
{
    name = ModuleAnimation2Value
    animationName = InflateShieldL
    valueName = maximum_drag
    valueCurve
    {
        key = 0 1 0 0
        key = 0.2 1.5 0 0
        key = 1 4 0 0
    }
}
MODULE
{
    name = ModuleEnviroSensor
    sensorType = TEMP
}

MODULE
{
    name = ModuleAnimation2Value
    animationName = heatshield
    valueName = maximum_drag
    valueCurve
    {
        key = 0.0 0.2 0 0
        key = 1.0 10.0 0 0
    }
}

	MODULE
	{
	    name = ModuleAnimation2Value
	    animationName = heatshield
	    valueName = minimum_drag
	    valueCurve
	    {
	        key = 0.0 0.2 0 0
			key = 0.25 1 0 0
			key = 0.9 5 0 0
	        key = 1.0 10.0 0 0
	    }
	}
	MODULE
    {
        name = ModuleAnimation2Value
        animationName = heatshield
        valueName = angularDrag
        valueCurve
        {
            key = 0 2 0 0
            key = 1 1000 0 0
        }
    }
	MODULE
	{
	    name = ModuleAnimation2Value
	    animationName = heatshield
	    valueModule = ModuleHeatShield
	    valueName = reflective
	    valueCurve
	    {
	        key = 0 0.02 0.0 0.0 //not negative because the shield is there, just smaller
	        key = 0.8 0.1 0.0 0.0
	        key = 1 0.25 0.0 0.0 //full reflection
	    }
	}

	MODULE
	{
		name = ModuleHeatShield
		direction = 0, -1, 0 // bottom of pod
		reflective = 0.02 // 2% of heat is ignored at correct angle (pre-inflation)
	}
	RESOURCE
	{
		name = LeadBallast
		amount = 0.0
		maxAmount = 352.734
	}
}
@PART[XPC_InflateHeatshieldLX]:NEEDS[FerramAerospaceResearch]
{
	!MODULE[ModuleAnimation2Value],0{}
	!MODULE[ModuleAnimation2Value],1{}
	!MODULE[ModuleAnimation2Value],2{}
}
}
}
}
